This paper presents the simulation and controller optimization of a quadrotor Unmanned Aerial Vehicle (UAV) system. The quadrotor model is derived adopting the Newton-Euler approach, and is intended to be constituted by four three-phase Permanent Magnet Synchronous Motors (PMSM) controlled with a velocity control loop-based Field Oriented Control (FOC) technique. The Particle Swarm Optimization (PSO) algorithm is used to tune the parameters of the PID controllers of quadrotor height, quadrotor attitude angles, and PMSMs’ rotational speeds, which represent the eight critical parameters of the PMSM-quadrotor UAV system. The PSO algorithm is designed to optimize eight Square Error (SE) cost functions which quantify the error dynamics of the controlled variables. For each stabilization task, the PID tuning is divided in two phases. Firstly, the PSO optimizes the error dynamics of altitude and attitude angles of the quadrotor UAV. Secondly, the desired steady-state rotational speeds of the PMSMs are derived, and the PSO is used to optimize the motors’ dynamics. Finally, the complete PMSM-Quadrotor UAV system is simulated for stabilization during the target task. The study is carried out by means of simulations in MATLAB/Simulink®.
Loading....